import Vue from 'vue'
import Vuex from 'vuex'
import app from "./modules/app"//引入app模块
import tab from './modules/tab'
import createPersistedState from 'vuex-persistedstate'
Vue.use(Vuex)
export default new Vuex.Store({
  plugins: [
    createPersistedState({
      key: 'erabbit-client-pc-store', // 本地储存的是一个对象 里面的key
      paths: ['tab']// vuex那个模块的数据要进行数据持久化
    })
  ],
  state: {
    list: [
      {
        id: 1,
        name: "税e贷",
        site: '中国工商银行',
        age: " 参考利率：4.25%",
        deadline: " 融资期限：0-12个月",
        money: "融资额度：0-1000万 ",
        compellation: "联系人小明",
        phone: "18695438754",
        e_mail: "18695438754@qq.com",
        freight: '工商银行企业小额贷款 ',
        guarantee: "担保方式：   信用",
        Financingterm: "融资期限：   0~12个月",
        contact: "产品联系方式：   022-452155",
        finance: "建行理财/不超过4.25%/0-300万/0-12个月",
        deadline: "6~12个月",
        sum: "¥5000000",
        display: true,
        displayone: true
      },
      {
        id: 3,
        name: "税e贷",
        site: '中国银行',
        age: " 参考利率：4.25%",
        deadline: " 融资期限：0-12个月",
        money: "融资额度：0-1000万 "
      },
      {
        id: 2,
        name: "税e贷",
        site: '中国银行',
        age: " 参考利率：4.25%",
        deadline: " 融资期限：0-12个月",
        money: "融资额度：0-1000万 "
      },
      {
        id: 4,
        name: "税e贷",
        site: '中国银行',
        age: " 参考利率：4.25%",
        deadline: " 融资期限：0-12个月",
        money: "融资额度：0-1000万 "
      },
      {
        id: 5,
        name: "税e贷",
        site: '中国银行',
        age: " 参考利率：4.25%",
        deadline: " 融资期限：0-12个月",
        money: "融资额度：0-1000万 "
      },
      {
        id: 6,
        name: "税e贷",
        site: '中国银行',
        age: " 参考利率：4.25%",
        deadline: " 融资期限：0-12个月",
        money: "融资额度：0-1000万 "
      },
      {
        id: 7,
        name: "税e贷",
        site: '中国银行',
        age: " 参考利率：4.25%",
        deadline: " 融资期限：0-12个月",
        money: "融资额度：0-1000万 "
      },
      {
        id: 8,
        name: "税e贷",
        site: '中国银行',
        age: " 参考利率：4.25%",
        deadline: " 融资期限：0-12个月",
        money: "融资额度：0-1000万 "
      },
      {
        id: 9,
        name: "税e贷",
        site: '中国银行',
        age: " 参考利率：4.25%",
        deadline: " 融资期限：0-12个月",
        money: "融资额度：0-1000万 "
      },

    ],
    data: [
      {
        id: 1,
        name: "税e贷",
        site: '中国工商银行',
        age: " 参考利率：4.25%",
        deadline: " 融资期限：0-12个月",
        money: "融资额度：0-1000万 ",
        compellation: "联系人小明",
        phone: "18695438754",
        e_mail: "18695438754@qq.com",
        freight: '工商银行企业小额贷款 ',
        guarantee: "担保方式：   信用",
        Financingterm: "融资期限：   0~12个月",
        contact: "产品联系方式：   022-452155",
        finance: "建行理财/不超过4.25%/0-300万/0-12个月",
        deadline: "6~12个月",
        sum: "¥5000000",
        sumone: " 融资主题：乡村振兴"
      },
      {
        id: 2,
        name: "税e贷",
        site: '中国工商银行',
        age: " 参考利率：4.25%",
        deadline: " 融资期限：0-12个月",
        money: "融资额度：0-1000万 ",
        compellation: "联系人小明",
        phone: "18695438754",
        e_mail: "18695438754@qq.com",
        freight: '工商银行企业小额贷款 ',
        guarantee: "担保方式：   信用",
        Financingterm: "融资期限：   0~12个月",
        contact: "产品联系方式：   022-452155",
        finance: "建行理财/不超过4.25%/0-300万/0-12个月",
        deadline: "6~12个月",
        sum: "¥5000000",
        sumone: " 融资主题：乡村振兴"
      },
      {
        id: 3,
        name: "税e贷",
        site: '中国工商银行',
        age: " 参考利率：4.25%",
        deadline: " 融资期限：0-12个月",
        money: "融资额度：0-1000万 ",
        compellation: "联系人小明",
        phone: "18695438754",
        e_mail: "18695438754@qq.com",
        freight: '工商银行企业小额贷款 ',
        guarantee: "担保方式：   信用",
        Financingterm: "融资期限：   0~12个月",
        contact: "产品联系方式：   022-452155",
        finance: "建行理财/不超过4.25%/0-300万/0-12个月",
        deadline: "6~12个月",
        sum: "¥5000000",
        sumone: " 融资主题：乡村振兴"
      },
      {
        id: 4,
        name: "税e贷",
        site: '中国工商银行',
        age: " 参考利率：4.25%",
        deadline: " 融资期限：0-12个月",
        money: "融资额度：0-1000万 ",
        compellation: "联系人小明",
        phone: "18695438754",
        e_mail: "18695438754@qq.com",
        freight: '工商银行企业小额贷款 ',
        guarantee: "担保方式：   信用",
        Financingterm: "融资期限：   0~12个月",
        contact: "产品联系方式：   022-452155",
        finance: "建行理财/不超过4.25%/0-300万/0-12个月",
        deadline: "6~12个月",
        sum: "¥5000000",
        sumone: " 融资主题：乡村振兴"
      },
      {
        id: 5,
        name: "税e贷",
        site: '中国工商银行',
        age: " 参考利率：4.25%",
        deadline: " 融资期限：0-12个月",
        money: "融资额度：0-1000万 ",
        compellation: "联系人小明",
        phone: "18695438754",
        e_mail: "18695438754@qq.com",
        freight: '工商银行企业小额贷款 ',
        guarantee: "担保方式：   信用",
        Financingterm: "融资期限：   0~12个月",
        contact: "产品联系方式：   022-452155",
        finance: "建行理财/不超过4.25%/0-300万/0-12个月",
        deadline: "6~12个月",
        sum: "¥5000000",
        sumone: " 融资主题：乡村振兴"
      },
      {
        id: 6,
        name: "税e贷",
        site: '中国工商银行',
        age: " 参考利率：4.25%",
        deadline: " 融资期限：0-12个月",
        money: "融资额度：0-1000万 ",
        compellation: "联系人小明",
        phone: "18695438754",
        e_mail: "18695438754@qq.com",
        freight: '工商银行企业小额贷款 ',
        guarantee: "担保方式：   信用",
        Financingterm: "融资期限：   0~12个月",
        contact: "产品联系方式：   022-452155",
        finance: "建行理财/不超过4.25%/0-300万/0-12个月",
        deadline: "6~12个月",
        sum: "¥5000000",
        sumone: " 融资主题：乡村振兴"
      },
    ]
  },
  getters: {//创建快捷访问
  },
  mutations: {
  },
  actions: {

  },

  modules: {//分模块
    app,
    tab,
  }
})
